package util; 
 
import javax.mail.*; 
 
 
public class SMTPAuthenticator extends javax.mail.Authenticator 
{ 
    // Replace with your actual unix id 
private static final String SMTP_AUTH_USER = "pnhv88"; 
// Replace with your actual unix password 
    private static final String SMTP_AUTH_PWD  = "op3r@ti0n"; 
     
     
         
    public SMTPAuthenticator()  
    { 
    } 
     
     
     
    @Override 
    public PasswordAuthentication getPasswordAuthentication() 
    { 
        String username = SMTP_AUTH_USER; 
        String password = SMTP_AUTH_PWD; 
         
        return new PasswordAuthentication(username, password); 
    } 
} 